/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.persistance;

import java.io.FileNotFoundException;
import java.io.IOException;
import nominalitzacions.domain.Language;

/**
 *
 * @author genis
 */
public class LanguageDataManagerController {

    private LanguageDataManager LDM;

    public LanguageDataManagerController() {
        LDM = new LanguageDataManager("Nominalizator");
    }

    public void saveLanguage(String langName, String irrPath, String infPath,
             String nounsPath, String corpPath) throws IOException {
        LDM.saveLanguage(langName, irrPath, infPath, nounsPath, corpPath);
    }

    public Language loadLanguage(String langName) throws FileNotFoundException {
        return LDM.loadLanguage(langName);
    }

    public Language [] loadAllLanguages() throws FileNotFoundException {
        Language [] l = LDM.loadAllLanguages();
        return LDM.loadAllLanguages();

    }

    public void deleteLanguage(String langName) {
        LDM.deleteLanguage(langName);
    }

}
